namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class BlogMap : ClassMap<BlogDataModel>
    {
        public BlogMap()
        {
            this.Table("Blog");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");
            this.Map(x => x.CreationDate).Not.Nullable().Column("CreationDate");
            this.Map(x => x.OwnerId).Not.Nullable().Column("OwnerId");
            this.Map(x => x.OwnerFirstName).Column("OwnerFirstName");
            this.Map(x => x.OwnerLastName).Column("OwnerLastName");
        }
    }
}